package com.woniuxy.microgoldservice.utils;

/**
 * @author hongbin
 * @date 2021-04-16 11:16
 * Description：
 */

public enum  CodeEnum {

    UNKNOWN_ERROR("-1", "未知错误"),

    SUCCESS("200", "成功"),

    PARAM_ERROR("201", "参数不合法"),

    DATABASE_ERROR("202", "数据库异常"),

    GOLD_INFO("800","获取黄金信息失败"),

    GOLD_HISTORY_INFO("801","获取黄金历史信息失败"),

    GOLD_CHART_INFO("802","获取黄金走势图失败"),

    GOLD_BUY_ERROR("803","购买失败"),

    GOLD_REDEEM_ERROR("804","赎回失败"),

    GOLD_BALANCE_ERROT("805","余额不足"),

    BUY_INFO("1","购买"),

    REDEMPTION_INFOCODE_ENUM("2","赎回"),

    PARAMETER_ERROR("808","参数异常"),

    PURCHASE_ERROR("809","请购买商品"),

    REDEMPTION_WARNING("810","剩余不足一克，已为你全部赎回"),

    PRODUCT_NAME("3","黄金");


    private String code;
    private String message;

    CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
